local Tool = class("Tool")

function Tool:ctor()
	self.itemBagType = Enums.ItemBagType.tool

    self.tid = 0
	self.isNew = false
end

function Tool:write(value)
     value.tid = self.tid
end


function Tool:read(value)
    self.tid = value.tid
end

function Tool:setIsNewGet(isNew)
	self.isNew = isNew
end

-- todo read conf
function Tool:getIcon()
	return nil
end

-- todo read conf
function Tool:getIconBg()
	return Res.Qulity_Icon_Bg[1]
end

return Tool